package com.repair.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;


@Embeddable
public class LineStationPK implements Serializable{
	
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -5852316246623212228L;
	@Column(name="LINE_NUMBER")
	private String line_number;
	@Column(name="STATION_NUMBER")
	private String station_number;
	@Column(name="AREA_NUMBER")
	private String area_number;
	
	@Override
	public int hashCode(){
		return super.hashCode();
	}
	
	@Override
	public boolean equals(Object obj){
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		final LineStationPK other = (LineStationPK) obj;
		if (line_number == null) {
			if (other.line_number != null) {
				return false;
			}
		} else if (line_number != other.line_number) {
			return false;
		}
		
		if (station_number == null) {
			if (other.station_number != null) {
				return false;
			}
		} else if (station_number != other.station_number) {
			return false;
		}
		return true;
		
	}

	public String getLine_number() {
		return line_number;
	}

	public void setLine_number(String line_number) {
		this.line_number = line_number;
	}

	public String getStation_number() {
		return station_number;
	}

	public void setStation_number(String station_number) {
		this.station_number = station_number;
	}

	public String getArea_number() {
		return area_number;
	}

	public void setArea_number(String area_number) {
		this.area_number = area_number;
	}
	
	
	
}

